import 'package:flutter/material.dart';
import 'package:my_flutter_core/widgets/list_tile_value_trailing.dart';

class SimpleDetailListTile extends StatelessWidget {
  const SimpleDetailListTile({
    super.key,
    this.leading,
    this.title,
    this.subtitle,
    this.value,
    this.selected = false,
    this.onTap,
  });

  final Widget? leading;
  final Widget? title;
  final Widget? subtitle;
  final Widget? value;
  final bool selected;
  final GestureTapCallback? onTap;

  @override
  Widget build(BuildContext context) {
    return ListTile(
      leading: leading,
      title: title,
      subtitle: subtitle,
      trailing: ListTileValueTrailing(value: [value ?? Container()]),
      selected: selected,
      onTap: onTap,
    );
  }
}
